using Microsoft.Extensions.DependencyInjection;
using MyBlogServer.Services;
using Microsoft.AspNetCore.Authentication.JwtBearer;

namespace MyBlogServer
{
    public static class DependencyInjectionConfig
    {
        public static IServiceCollection AddApplicationServices(this IServiceCollection services)
        {
            // 注册 JwtAuthService
            services.AddScoped<IJwtAuthService, JwtAuthService>();
            
            // 注册 SessionAuthService
            services.AddScoped<ISessionAuthService, SessionAuthService>();
            
            // 注册 MarkdownService
            services.AddScoped<IMarkdownService, MarkdownService>();
            
            // 其他服务注册
            return services;
        }
    }
}